# -*-coding: Utf-8 -*-
# @File : Base .py
# author: Chimengmeng
# blog_url : https://www.cnblogs.com/dream-ze/
# Time：2023/10/2

from fastapi import APIRouter, Request

from api.endpoints.test import test_oath2
from api.endpoints import user, role, access, websocket
from api.extends import sms_tencent, wechat

api_router = APIRouter(prefix="/api/v1")
api_router.post("/test/oath2", tags=["测试oath2授权"])(test_oath2)
api_router.include_router(user.router, prefix='/admin', tags=["用户管理"])
api_router.include_router(role.router, prefix='/admin', tags=["角色管理"])
api_router.include_router(access.router, prefix='/admin', tags=["权限管理"])
api_router.include_router(websocket.router, prefix='/ws', tags=["WebSocket"])
api_router.include_router(wechat.router, prefix='/wechat', tags=["微信授权"])
api_router.include_router(sms_tencent.router, prefix='/sms', tags=["短信接口"])
# api_router.include_router(cos.router, prefix='/cos', tags=["对象存储接口"])
